package com.yangrd.airship.generator.support.utils;

import org.springframework.util.Assert;

/**
 * @author yangrd
 * @date 2021/11/13
 */
public class StringUtils {

    public static String capFirst(String str) {
        Assert.notNull(str,"not null");
        return str.substring(0, 1).toUpperCase() + str.substring(1);
    }

    public static String unCapFirst(String str) {
        Assert.notNull(str,"not null");
        return str.substring(0, 1).toLowerCase() + str.substring(1);
    }
}
